package com.da.result;

/**
 * 默认响应空结果对象
 *
 * @author da
 * @time 2024/7/5 下午 4:58
 */
public class EmptyResult implements Result {
    private final int code;

    public EmptyResult(int code) {
        this.code = code;
    }

    @Override
    public String content() {
        return "请求失败,请检查Ollama配置!!!";
    }

    @Override
    public String toString() {
        return "{\"code:" + code + ",\"error\":\"请求失败,请检查Ollama配置!!!\"}";
    }
}
